package com.njtoyo.taxi.admin.rest.wrapper.business.driver.system_message;

import com.njtoyo.taxi.admin.mapper.master.enums.DriverSystemMessageCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("司机系统消息模型")
public class EditWrapper {

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "内容不能为空")
    private String content;

    @ApiModelProperty(value = "类型")
    @NotNull(message = "类型不能为空")
    private DriverSystemMessageCategory category;

    @ApiModelProperty(value = "规则")
    @NotNull(message = "规则不能为空")
    private Object rule;
}
